home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 19 / CU Amiga Magazine's Super CD-ROM 19 (1998)(EMAP Images)(GB)[!][issue 1998-02].iso / CUCD / Online / NNTPd / server / globals.c < prev    next >
Encoding:
C/C++ Source or Header  |  2002-12-03  |  1.4 KB  |  73 lines

  1. #ifndef lint
  2. static char    sccsid[] = "@(#)$Id: globals.c,v 1.14 1994/12/03 21:54:30 sob Exp sob $";
  3. #endif
  4.  
  5. /*
  6.  * Common variables.
  7.  */
  8.  
  9. #include "common.h"
  10.  
  11. /*
  12.  * Variables initialized from conf.h
  13.  */
  14.  
  15. char    spooldir[] = SPOOLDIR;
  16. char    activefile[] = ACTIVE_FILE;
  17. char    accessfile[] = ACCESS_FILE;
  18. char    distributionsfile[] = DISTRIBUTIONS_FILE;
  19. char    subscriptionsfile[] = SUBSCRIPTIONS_FILE;
  20. char    newsgroupsfile[] = NEWSGROUPS_FILE;
  21. char    historyfile[] = HISTORY_FILE;
  22. char    overviewfmtfile[] = OVER_FMT_FILE;
  23. char    activetimesfile[] = ACTIVE_TIMES_FILE;
  24. char    inews[] = INEWS;
  25. char    rnews[] = RNEWS;
  26.  
  27. #ifdef    XTHREAD
  28. char    threaddir[] = THREAD_DIR;
  29. char    *threadfile = NULL;
  30. #endif
  31.  
  32. /*
  33.  * Other random externals.
  34.  */
  35.  
  36. char    **group_array;
  37. char     *actbuf;
  38. int    num_groups;
  39. int    ingroup = 0;
  40. char    *group_name = NULL;
  41. long    group_artnum = 0;
  42. int    art_ptr;
  43. int    num_arts;
  44. #ifdef DYNAMIC_ART_ARRAY
  45. int    *art_array = 0;        /* dynamic array */
  46. unsigned int size_art_array = 0;    /* current size of art_array */
  47. #else
  48. int    art_array[MAX_ARTICLES];
  49. #endif
  50. FILE    *art_fp;
  51. int    uid_poster, gid_poster;
  52. char    *home_poster;
  53. int    canpost, canread, canxfer;
  54. char    **ngpermlist;
  55. int    ngpermcount;
  56. char    hostname[256];
  57. int    debug
  58. #ifdef DEBUG
  59.     = DEBUG
  60. #endif
  61.     ;
  62.  
  63. #ifdef AUTH
  64. int    Needauth;    /* 1 if we need to do authorization */
  65. char    User[100];    /* username for authentication */
  66. char    Host[100];    /* host name for authentication */
  67. #endif
  68.  
  69. #ifdef LOG
  70. int    arts_acsd;
  71. int    grps_acsd;
  72. #endif
  73.